﻿<?xml version="1.0" encoding="utf-8"?>
<appConfig>
  <!--Type Provider-->
  <typeProviders>
    <add key="TXTMonitor" value="TXTMonitor.Process,TXTMonitor"></add>
    <add key="XLSMonitor" value="XLSMonitor.Process,XLSMonitor"></add>
    <add key="BizHPForecast" value="FileMonitor.BizProcess.BizHPForecast,FileMonitor.BizProcess"></add>
    <add key="BizForecast" value="FileMonitor.BizProcess.BizForecast,FileMonitor.BizProcess"></add>
  </typeProviders>
  <!--SpecialValue-->
  <specialValues>
    <add key="CZForecastSplitArr" value="36,1,4,8,2,16,4,4,12,8,8" />
    <add key="CZInventorySplitArr" value="36,1,4,8,2,16,4,4,12,12,12,12,12,12,12,12,12,12,12,12,12,12,3,8,36,4,12,10,4,36,10,6" />
    <!--<add key="CZCommitmentSplitArr" value="36,1,4,8,2,16,30,2,8,4,2,12,4,4,2,2,4,2,1,1,2,4,4,3,5,3,12,3,5,3,4,4,36,6" />-->
    <add key="CZPartNumberSplitArr" value="36,1,4,8,2,16,30,2,8,4,2,12,4,4,2,2,4,2,1,1,2,4,4,3,5,3,12,3,5,3,8,4,36,6" />
    <!--<add key="TestInventorySplitArr" value="36,1,18,4,4,1,2,16,16,16,1,1,10,23" />-->
    <add key="CZCommitmentSplitArr" value="36,1,4,8,2,16,4,4,1,12,6,8,8,8,12,8,36,9,4,3,4,10,36,1,20,16,35,8,4,35" />
  </specialValues>
  <!--DataBase Connection-->
  <connectionStrings>
    <add name="ProductionIPPDL10ExchangeDB" connectionString="Database=ROPExchange;Server=10.145.32.73,3000;User Id=scmuser;Password=doit@now;" providerName="System.Data.SqlClient" />
    <!--<add name="DefaultExchangeDB" connectionString="Database=SAPExchangeDB;Server=10.157.45.88;User Id=sa;Password=Aa000000;" providerName="System.Data.SqlClient" />-->
    <add name="ProductionExchangeDB" connectionString="Database=SAPExchangeDB;Server=10.106.131.63,3001;User Id=scmuser;Password=doit@now;" providerName="System.Data.SqlClient" />
    <!--<add name="DefaultExchangeDB" connectionString="Database=SAPExchangeDB;Server=10.145.32.73,3000;User Id=scmuser;Password=doit@now;" providerName="System.Data.SqlClient"/>-->
    <!--<add name="ExchangeDB" connectionString="Database=SAPExchangeDB;Server=10.17.50.64;User Id=sa;Password=test123;" providerName="System.Data.SqlClient" />-->
    <!--<add name="LHExchangeDB" connectionString="Database=EfoxNC_Exchange;Server=10.157.45.86,3000;User Id=sa;Password=Aa000000;" providerName="System.Data.SqlClient" />-->
    <add name="BusinessDB" connectionString="Database=EfoxNC;Server=10.157.45.88;User Id=sa;Password=Aa000000;" providerName="System.Data.SqlClient" />
    <!--<add name="ExchangeDB" connectionString="Database=ROPExchangeTest;Server=10.145.32.73,3000;User Id=DevReadUser;Password=DevReadUser;" providerName="System.Data.SqlClient" />-->
  </connectionStrings>
  <!--Process Provider-->
  <processProviders>
    <processes>

      <add name="IPPDGoodsMovement" DataFilter="" Filter="*.txt" SplitArr="" BizProcesses="[0,Procedure_ IPPDL10GRLogic]" TargetDatabaseName="ProductionExchangeDB" SplitChar="^" TargetTable="SAPGoodsMovementData" PlantCodeIndex="0"
           BackUpPath="D:\SICT\Files\IPPDL10MRP007\Backup" MonitorPath="D:\SICT\Files\IPPDL10MRP007" typeName="TXTMonitor" WaitTime="5" PlantCodeLength="4" LogPath="D:\SICT\Files\IPPDL10MRP007\Log" DataType="ROPConsumption" FilterPlantCode="" />

      <!--<add name="IPPDMRP015" DataFilter="" Filter="*.txt" SplitArr="" BizProcesses="" TargetDatabaseName="DefaultExchangeDB" SplitChar="^" TargetTable="SAPForecastT" PlantCodeIndex="0" 
           BackUpPath="D:\SICT\Files\IPPDL10MRP007\backup" MonitorPath="D:\SICT\Files\IPPDL10MRP007" 
           typeName="TXTMonitor" WaitTime="5" PlantCodeLength="4" LogPath="D:\SICT\Files\IPPDL10MRP007\Log" DataType="IPPD015FKS" />-->
      <!--<add name="IPPDMRP007" DataFilter="" Filter="*.txt" SplitArr="" BizProcesses="" TargetDatabaseName="DefaultExchangeDB" SplitChar="^" TargetTable="SAPForecastT" PlantCodeIndex="0"
           BackUpPath="D:\SICT\Files\IPPDL10MRP007\backup" MonitorPath="D:\SICT\Files\IPPDL10MRP007"
           typeName="TXTMonitor" WaitTime="5" PlantCodeLength="4" LogPath="D:\SICT\Files\IPPDL10MRP007\Log" DataType="IPPD015FKS" />-->
      <!--<add name="MonitorHPForecast2003" typeName="XLSMonitor" FileType="XLS" DataFilter="" MonitorPath="D:\FTPFile\APJHPL10FCST" PlantCodeIndex="0" PlantCodeLength="4" Filter="*.XLS" FilterPlantCode="" DataType="HPForecast" WaitTime="5" TargetDatabaseName="DefaultExchangeDB" TargetTable="NoneEDIForecastT" BackUpPath="D:\FTPFile\APJHPL10FCST\backup" LogPath="D:\FTPFile\APJHPL10FCST\Log" SplitChar="" SplitArr="" />-->
      <!-- <add name="IPPDMRP015" DataFilter="" Filter="*.txt" SplitArr="" BizProcesses="" TargetDatabaseName="DefaultExchangeDB" SplitChar="^" TargetTable="SAPForecastT" PlantCodeIndex="0" BackUpPath="D:\FTPFile\IPPD\IPPD015\backup" MonitorPath="D:\FTPFile\IPPD\IPPD015" typeName="TXTMonitor" WaitTime="5" PlantCodeLength="4" LogPath="D:\FTPFile\IPPD\IPPD015\Log" DataType="IPPD015FKS" />
      <add name="IPPDMRP007" DataFilter="" Filter="*.txt" SplitArr="" BizProcesses="" TargetDatabaseName="DefaultExchangeDB" SplitChar="^" TargetTable="SAPForecastT" PlantCodeIndex="0" BackUpPath="D:\FTPFile\IPPD\IPPD007\backup" MonitorPath="D:\FTPFile\IPPD\IPPD007" typeName="TXTMonitor" WaitTime="5" PlantCodeLength="4" LogPath="D:\FTPFile\IPPD\IPPD007\Log" DataType="Forecast" />
      <add name="NPIEOLDemand" DataFilter="" Filter="*.txt" SplitArr="" BizProcesses="" TargetDatabaseName="DefaultExchangeDB" SplitChar="^" TargetTable="SAPForecastT" PlantCodeIndex="0" BackUpPath="D:\FTPFile\IPPD\IPPDMPIEOLDemad\backup" MonitorPath="D:\FTPFile\IPPD\IPPDMPIEOLDemad" typeName="TXTMonitor" WaitTime="5" PlantCodeLength="4" LogPath="D:\FTPFile\IPPD\IPPDMPIEOLDemad\Log" DataType="NPIEOLDemandFKS" />
      <add name="IPPDL10MRP005" DataFilter="" Filter="*.txt" SplitArr="" BizProcesses="" TargetDatabaseName="DefaultExchangeDB" SplitChar="^" TargetTable="SAPForecastT" PlantCodeIndex="0" BackUpPath="D:\FTPFile\IPPD\IPPD005\backup" MonitorPath="D:\FTPFile\IPPD\IPPD005" typeName="TXTMonitor" WaitTime="5" PlantCodeLength="4" LogPath="D:\FTPFile\IPPD\IPPD005\Log" DataType="MRP005" />
      <add name="GSCMInventory" DataFilter="Indicator='D'" Filter="*.done" SplitArr="" BizProcesses="" TargetDatabaseName="DefaultExchangeDB" SplitChar="^" TargetTable="SAPInventoryT" PlantCodeIndex="0" BackUpPath="D:\FTPFile\GSCM\Inventory\backup" MonitorPath="D:\FTPFile\GSCM\Inventory" typeName="TXTMonitor" WaitTime="5" PlantCodeLength="4" LogPath="D:\FTPFile\GSCM\Inventory\Log" DataType="GSCMInventory" />
      <add name="GSCMMaterialMaster" DataFilter="" Filter="*.done" SplitArr="" BizProcesses="" TargetDatabaseName="DefaultExchangeDB" SplitChar="^" TargetTable="SAPMaterialMaster" PlantCodeIndex="0" BackUpPath="D:\FTPFile\GSCM\MaterialMaster\backup" MonitorPath="D:\FTPFile\GSCM\MaterialMaster" typeName="TXTMonitor" WaitTime="5" PlantCodeLength="4" LogPath="D:\FTPFile\GSCM\MaterialMaster\Log" DataType="GSCMMaterialMaster" />
      <add name="GSCMMaterialSourcing" DataFilter="Indicator='D'" Filter="*.done" SplitArr="" BizProcesses="" TargetDatabaseName="DefaultExchangeDB" SplitChar="^" TargetTable="SAPMaterialSourcing" PlantCodeIndex="0" BackUpPath="D:\FTPFile\GSCM\MaterialSourcing\backup" MonitorPath="D:\FTPFile\GSCM\MaterialSourcing" typeName="TXTMonitor" WaitTime="5" PlantCodeLength="4" LogPath="D:\FTPFile\GSCM\MaterialSourcing\Log" DataType="GSCMMaterialSourcing" />
      <add name="HMDForecast" DataFilter="" Filter="*.txt" SplitArr="" BizProcesses="" TargetDatabaseName="DefaultExchangeDB" SplitChar="^" TargetTable="SAPForecastT" PlantCodeIndex="0" BackUpPath="D:\FTPFile\HMDForecast\backup" MonitorPath="D:\FTPFile\HMDForecast" typeName="TXTMonitor" WaitTime="5" PlantCodeLength="4" LogPath="D:\FTPFile\HMDForecast\Log" DataType="HMDForecast" />-->
      
    </processes>
  </processProviders>
  <!--Business Logic Peivider-->
  <businessLogicPeocesses>
    <procedureProcesses>
      <add name="Procedure_HPFrocastLogic" SourceDatabaseName="DefaultExchangeDB" TargetDatabaseName="BusinessDB" BizProcedure="WW_BizForecastProcess_SP" TargetProcedure="WWSave_ForecastFromSAPExchangeDB_SP" TimeOut="3600" TargetParams="[TransType,IMPORTFCST]" SourcesParams="[TransType,PreProcess]" NextStatus="1" TypeName="TXTMonitor"></add>
	    <add name="Procedure_IPPDL10MRP005Logic" SourcesParams="" TargetParams="[TransType,IMPORTFCST]" BizProcedure="" TargetProcedure="WWSave_ForecastFromSAPExchangeDB_SP" SourceDatabaseName="DefaultExchangeDB" TargetDatabaseName="BusinessDB" NextStatus="1" TimeOut="3600" TypeName="TXTMonitor" />
      <add name="Procedure_IPPDL10MRP007Logic" SourcesParams="" TargetParams="[TransType,IMPORTFCST]" BizProcedure="" TargetProcedure="WWSave_ForecastFromSAPExchangeDB_SP" SourceDatabaseName="DefaultExchangeDB" TargetDatabaseName="BusinessDB" NextStatus="1" TimeOut="3600" TypeName="TXTMonitor" />
      <add name="Procedure_MPIEOLDemandLogic" SourcesParams="" TargetParams="[TransType,IMPORTFCST]" BizProcedure="" TargetProcedure="WWSave_ForecastFromSAPExchangeDB_SP" SourceDatabaseName="DefaultExchangeDB" TargetDatabaseName="BusinessDB" NextStatus="1" TimeOut="3600" TypeName="TXTMonitor" />
      <add name="Procedure_IPPDL10007Logic" SourcesParams="" TargetParams="[TransType,IMPORTFCST]" BizProcedure="" TargetProcedure="WWSave_ForecastFromSAPExchangeDB_SP" SourceDatabaseName="DefaultExchangeDB" TargetDatabaseName="BusinessDB" NextStatus="1" TimeOut="3600" TypeName="TXTMonitor" />
      <add name="Procedure_CZAllocation" SourcesParams="[TransType,CZAllocation]" TargetParams="[TransType,CZAllocation]" BizProcedure="" TargetProcedure="" SourceDatabaseName="DefaultExchangeDB" TargetDatabaseName="DefaultExchangeDB" NextStatus="1" TimeOut="3600" TypeName="XLSMonitor" />
      <!--<add name="Procedure_TestInventory" SourcesParams="" TargetParams="[TransType,test]" BizProcedure="" TargetProcedure="WWSave_TestFromSAPExchangeDB_SP" SourceDatabaseName="DefaultExchangeDB" TargetDatabaseName="BusinessDB" NextStatus="1" TimeOut="3600" TypeName="TXTMonitor" />-->
	    <add name="Procedure_TestInventory" SourcesParams="" TargetParams="[TransType,test]" BizProcedure="" TargetProcedure="" SourceDatabaseName="" TargetDatabaseName="" NextStatus="1" TimeOut="3600" TypeName="TXTMonitor" />
	    <add name="Procedure_TestConsumption" SourcesParams="" TargetParams="[TransType,test]" BizProcedure="" TargetProcedure="" SourceDatabaseName="" TargetDatabaseName="" NextStatus="1" TimeOut="3600" TypeName="TXTMonitor" />
      <add name="Procedure_ IPPDL5GRLogic" SourceDatabaseName="ProductionExchangeDB" TargetDatabaseName="ProductionIPPDL5ExchangeDB" TargetProcedure="Process_GoodsMovement_SP_temp" TimeOut="3600" StatNextus="1" TypeName="TXTMonitor"/>
      <add name="Procedure_ IPPDL6GRLogic" SourceDatabaseName="ProductionExchangeDB" TargetDatabaseName="ProductionIPPDL6ExchangeDB" TargetProcedure="Process_GoodsMovement_SP_temp" TimeOut="3600" NextStatus="1" TypeName="TXTMonitor"/>
      <add name="Procedure_ IPPDL10GRLogic" SourceDatabaseName="ProductionExchangeDB" TargetDatabaseName="ProductionIPPDL10ExchangeDB" TargetProcedure="Process_GoodsMovement_SP_temp" TimeOut="3600" NextStatus="1" TypeName="TXTMonitor"/>

     </procedureProcesses>
    <cSharpProcesses>
      <add name="CSharp_HPForecastLogic" typeName="BizHPForecast" SourceDatabaseName="DefaultExchangeDB" TargetDataBase="BusinessDB" TimeOut="3600" NextStatus="2"></add>
    </cSharpProcesses>
  </businessLogicPeocesses>
</appConfig>